package com.example.xpvideo.entity.res;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 商品评论一级评论列表
 *
 * @author : 洪俊新
 * @date : 2021/8/18 11:26
 * @description:
 */
public class GoodsCommentsRes {
    /**
     * 主键
     * 评论id
     * isnull 1
     */
    private Long id;

    /**
     * 评论人userId
     * isnull 0
     */
    private Long userId;
    /**
     * 评论等级[ 1 一级评论 默认 ，2 二级评论]
     * isnull 0
     */
    private Integer commentLevel;
    /**
     *主键
     * ${column.comment}
     * isnull 1
     */
    private Integer goodsId;

    /**
     * 商品名称
     * isnull 0
     */            private String name;
    /**
     *规格id
     * ${column.comment}
     * isnull 1
     */
    private Integer skuId;
    /**
     * 多个规格名称，隔开
     * isnull 0
     */            private String specValueStr;
    /**
     * 商品评论星级 1 一星 2 二星 3三星 4四星 5五星
     * isnull 0
     */            private Integer goodsComment;
    /**
     * 服务评论星级 1 一星 2 二星 3三星 4四星 5五星
     * isnull 0
     */            private Integer serviceComment;
    /**
     * 物流评论星级 1 一星 2 二星 3三星 4四星 5五星
     * isnull 0
     */            private Integer expressComment;
    /**
     * 商品评论
     * isnull 0
     */            private String comment;
    /**
     * 删除标志:0-未删除.1-删除
     * isnull 0
     */            private Object del;
    /**
     * 描述相符星级1 一星 2 二星 3三星 4四星 5五星
     * isnull 0
     */            private Integer descriptionComment;
    /**
     * 显示状态 0-隐藏 1-显示
     * isnull 0
     */            private Object status;
    /**
     * 创建时间
     * isnull 0
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;
    /**
     * 图片数组
     * isnull 0
     */            private String imgList;

    /**
     * 一级评论者的昵称
     */
    private String nickname;
    /**
     * 一级评论者的头像
     */
    private String avatar;

    /**
     * 二级评论列表
     */
    private List<SecondComments> secondComments;
    /**
     * 某评论id下的二级评论的总数量
     */
    private Integer secondCount;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Integer getCommentLevel() {
        return commentLevel;
    }

    public void setCommentLevel(Integer commentLevel) {
        this.commentLevel = commentLevel;
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getSkuId() {
        return skuId;
    }

    public void setSkuId(Integer skuId) {
        this.skuId = skuId;
    }

    public String getSpecValueStr() {
        return specValueStr;
    }

    public void setSpecValueStr(String specValueStr) {
        this.specValueStr = specValueStr;
    }

    public Integer getGoodsComment() {
        return goodsComment;
    }

    public void setGoodsComment(Integer goodsComment) {
        this.goodsComment = goodsComment;
    }

    public Integer getServiceComment() {
        return serviceComment;
    }

    public void setServiceComment(Integer serviceComment) {
        this.serviceComment = serviceComment;
    }

    public Integer getExpressComment() {
        return expressComment;
    }

    public void setExpressComment(Integer expressComment) {
        this.expressComment = expressComment;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public Object getDel() {
        return del;
    }

    public void setDel(Object del) {
        this.del = del;
    }

    public Integer getDescriptionComment() {
        return descriptionComment;
    }

    public void setDescriptionComment(Integer descriptionComment) {
        this.descriptionComment = descriptionComment;
    }

    public Object getStatus() {
        return status;
    }

    public void setStatus(Object status) {
        this.status = status;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public String getImgList() {
        return imgList;
    }

    public void setImgList(String imgList) {
        this.imgList = imgList;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public List<SecondComments> getSecondComments() {
        return secondComments;
    }

    public void setSecondComments(List<SecondComments> secondComments) {
        this.secondComments = secondComments;
    }

    public Integer getSecondCount() {
        return secondCount;
    }

    public void setSecondCount(Integer secondCount) {
        this.secondCount = secondCount;
    }
}
